#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>


int main()
{
	int a = 0;
	int s = 0;
	scanf("%d", &a);
	s = a * 10000 + a * 1000 + a * 100 + a * 10 + a;
	printf("%d", s);

	return 0;

}


